package com.lianxueda.drawing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lianxueda.drawing.domain.pojo.ClassCourses;
import com.lianxueda.drawing.mapper.ClassCoursesMapper;
import com.lianxueda.drawing.service.ClassCoursesService;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 29264
* @description 针对表【class_courses】的数据库操作Service实现
* @createDate 2024-08-27 08:33:47
*/
@Service
public class ClassCoursesServiceImpl extends ServiceImpl<ClassCoursesMapper, ClassCourses>
    implements ClassCoursesService{
@Resource
private ClassCoursesMapper  classCoursesMapper;



    @Override
    public void addCourseForClass(Integer classId, Integer courseId) {

        classCoursesMapper.addCourseForClass(classId,courseId);
    }

    @Override
    public void updataClassIdByCourseId(Integer classId, Integer courseId) {

        classCoursesMapper.updataClassIdByCourseId(classId,courseId);
    }

    @Override
    public List<Integer> selectCourseIdByClassId(Integer classId) {

        return classCoursesMapper.selectCourseIdsByClassId(classId);
    }


}




